package com.learn.algorithm.designpattern.builder;

/**
 * 创建者模式
 * @author wangxing
 * @version 2020/8/20 6:11 Administrator
 */
public class LearnBuilder {
    public static void main(String[] args) {
        DefaultProductBuilder productBuilder = new DefaultProductBuilder();
        productBuilder.park1Builder("park1");
        Product product = productBuilder.builder();
        System.out.println(product);
        DefaultTempBeanBuilder tempBeanBuilder = new DefaultTempBeanBuilder();
        tempBeanBuilder.builderTemp1B(new Temp1B("1", "2", "3"));
        System.out.println(tempBeanBuilder.builder());
    }
}
